package com.hontech.bread.utils

import android.graphics.Canvas
import android.widget.EdgeEffect
import androidx.recyclerview.widget.RecyclerView

class EmptyEdge : RecyclerView.EdgeEffectFactory() {

    override fun createEdgeEffect(view: RecyclerView, direction: Int): EdgeEffect {
        return object : EdgeEffect(view.context) {

            override fun onPull(deltaDistance: Float, displacement: Float) {

            }

            override fun onRelease() {

            }

            override fun onAbsorb(velocity: Int) {

            }

            override fun draw(canvas: Canvas?): Boolean {
                return false
            }
        }
    }
}